import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/Home'
import user from '../components/fenye.vue'
import product from '../components/product.vue'
import login from '../components/Login.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component:login,
    },
    {
      path: '/home',
      name: 'home',
      component:home,
      children:[{
        path:"/user",
        name:'user',
        component:user
      },
      {
        path:"/product",
        name:product,
        component:product
      }
      ]
    }
  ]
})
